import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: () => import('../views/UserManage.vue')
  },
  {
    path: '/user_manage',
    component: () => import('../views/UserManage.vue')
  },
  {
    path: '/tool_type_manage',
    component: () => import('../views/ToolTypeManage.vue')
  },
  {
    path: '/drawer_manage',
    component: () => import('../views/DrawerManage.vue')
  },  
  {
    path: '/tool_manage',
    component: () => import('../views/ToolManage.vue')
  },
  {
    name: 'tool_dispense',
    path: '/tool_dispense',
    component: () => import('../views/ToolDispense.vue')
  },
  {
    path: '/operation_log',
    component: () => import('../views/LogManage.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
